/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.rs.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.rs.domain.po.ManufactureApplyPO;
import com.xy.biz.rs.domain.query.ManufactureApplyQuery;
import com.xy.biz.rs.domain.req.GetNextSequenceRequest;

/**
 *
 *
 * @author wwj
 * @date 2021-4-14
 */
public interface ManufactureApplyDao {

	/**
	 * 保存
	 *
	 * @param manufactureApplyPO
	 */
	int saveManufactureApply(ManufactureApplyPO manufactureApplyPO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllManufactureApply(Collection<ManufactureApplyPO> collection);

	/**
	 * 更新
	 *
	 * @param manufactureApplyPO
	 */
	int updateManufactureApply(ManufactureApplyPO manufactureApplyPO);

	/**
	 * 删除
	 *
	 * @param manufactureApplyId
	 */
	int deleteManufactureApply(Long manufactureApplyId);

	/**
	 * 查找一个
	 *
	 * @param manufactureApplyId
	 * @return
	 */
	ManufactureApplyPO getManufactureApply(Long manufactureApplyId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<ManufactureApplyPO> listManufactureApplyById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<ManufactureApplyPO> listManufactureApply(ManufactureApplyQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countManufactureApply(ManufactureApplyQuery query);

    int getNextSequence(GetNextSequenceRequest request);
}
